//
//  BKMyCommon.h
//  bestkeep
//
//  Created by 毛韶谦 on 2016/11/3.
//  Copyright © 2016年 utouu. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Masonry.h"
#import "UIView+Extension.h"
#import "BKUserRequestModel.h"
#import "BKUserShowNoContentView.h"
#import "BKShowBottomTiPMessageView.h"

#define BK_MY_COLOR_01 HexColor(0x00ba9c) //BESTKEEP绿
#define BK_MY_COLOR_02 HexColor(0x666666) //浅灰
#define BK_MY_COLOR_03 HexColor(0xf0efef)
#define BK_MY_COLOR_04 HexColor(0x888888)
#define BK_MY_COLOR_05 HexColor(0x999999)//版本号 
#define BK_MY_COLOR_06 HexColor(0xf7f7f7) //浅灰
#define BK_MY_COLOR_07 HexColor(0x404040)
#define BK_MY_COLOR_08 HexColor(0x5f646e)
#define  SCREENWIDTH  [[UIScreen mainScreen]bounds].size.width
//#define  SCREENHIGH   [[UIScreen mainScreen]bounds].size.height

#define BKMyLocalizedString(key) [BKMyCommon localizedStringWithKey:key]

//空值判断
#define IsNilString(__String) (__String==nil || [__String isEqualToString:@""]|| [__String isEqualToString:@"null"])
//字符串相等
#define IsEquallString(_Str1,_Str2)  [_Str1 isEqualToString:_Str2]
//颜色值转换
#define RGBCOLOR(R,G,B,A) [UIColor colorWithRed:R/255.0 green:G/255.0 blue:B/255.0 alpha:A]


//app版本号
//#define APP_VERSION [NSString stringWithFormat:@"%@", [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleShortVersionString"]]


//判定系统版本
#define iOSSyStem   [[[UIDevice currentDevice] systemVersion] floatValue]

//第三方ID
#define QQ_APPID @"1104979766"
#define WX_APPID @"wx2c7367321c4ecab5"

#define IOS8 ([[[UIDevice currentDevice] systemVersion] floatValue] >= 8.0 ? YES : NO)
#define IS_IPHONE_6 (fabs((double)[[UIScreen mainScreen] bounds].size.height - (double )667) < DBL_EPSILON )
#define IS_IPHONE_6_PLUS (fabs((double)[[UIScreen mainScreen] bounds].size.height - (double )960) < DBL_EPSILON )
#define  NSNotificationBKUserRelogin @"NSNotificationBKUserRelogin"

@interface BKMyCommon : NSObject

+(NSString*)localizedStringWithKey:(NSString*)key;
+(BOOL)userIsLoginWithInController:(UIViewController *)controller;
+(BOOL)checkNetwork;

@end
